package com.njlime.sys.entities;


import com.njlime.core.base.entities.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 单位微信配置
 *
 * @since 
 */
@Entity
@Table(name = "t_unit_wx_config")
public class UnitWxConfig extends BaseEntity{
    private Integer wx_type;
    private String app_id; // 公众平台appid
    private String app_secret; // 公众平台appsecret
    private String mch_id; // 微信商户号
    private String mch_key; // 微信商户秘钥
    private String cert; // 证书路径
    private String wx_id; // 证书路径
    private Integer unit_id; // 单位id
    private String tt_key; //头条号key
    private String tt_secret; //头条号秘钥

    /**
     * 微信公众号类型
     */
    public static final class WxType{
        public static final int SERVICE = 1; //服务号
        public static final int SUBSCRIBE = 2; //订阅号
    }

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    public String getApp_secret() {
        return app_secret;
    }

    public void setApp_secret(String app_secret) {
        this.app_secret = app_secret;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getMch_key() {
        return mch_key;
    }

    public void setMch_key(String mch_key) {
        this.mch_key = mch_key;
    }

    public Integer getUnit_id() {
        return unit_id;
    }

    public void setUnit_id(Integer unit_id) {
        this.unit_id = unit_id;
    }

    public String getCert() {
        return cert;
    }

    public void setCert(String cert) {
        this.cert = cert;
    }

    public String getTt_key() {
        return tt_key;
    }

    public void setTt_key(String tt_key) {
        this.tt_key = tt_key;
    }

    public String getTt_secret() {
        return tt_secret;
    }

    public void setTt_secret(String tt_secret) {
        this.tt_secret = tt_secret;
    }

    public Integer getWx_type() {
        return wx_type;
    }

    public void setWx_type(Integer wx_type) {
        this.wx_type = wx_type;
    }

    public String getWx_id() {
        return wx_id;
    }

    public void setWx_id(String wx_id) {
        this.wx_id = wx_id;
    }
}